package util;

import org.apache.commons.fileupload.ProgressListener;

/**
 *
 * @author Francis
 */
public class ImageUploadListener implements ProgressListener {

    private volatile long bytesRead = 0L,  contentLength = 0L,  item = 0L;

    public ImageUploadListener() {
        super();
    }

    public void update(long aBytesRead, long aContentLength,
            int anItem) {
        bytesRead = aBytesRead;
        contentLength = aContentLength;
        item = anItem;
    }

    public long getBytesRead() {
        return bytesRead;
    }

    public long getContentLength() {
        return contentLength;
    }

    public long getItem() {
        return item;
    }
}
